package com.yfp.auth.form;

import com.yfp.auth.valid.LoginValidGroup;
import io.swagger.v3.oas.annotations.media.Schema;
import io.swagger.v3.oas.annotations.tags.Tag;
import jakarta.validation.constraints.NotBlank;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 重置密码对象
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Tag(name = "重置密码对象")
public class ResetPasswordBody extends LoginBody {

    /**
     * 新密码
     */
    @NotBlank(message = "用户新密码不能为空", groups = LoginValidGroup.ResetPassword.class)
    @Schema(description = "用户新密码-Rsa加密后的密码")
    private String newPassword;

    /**
     * 新密码
     */
    @NotBlank(message = "校验新密码不能为空", groups = LoginValidGroup.ResetPassword.class)
    @Schema(description = "校验用户新密码-Rsa加密后的密码")
    private String repeatNewPassword;
}
